<?php
  abstract class BaseAction
  {

      private $content;
      private $subActief = false;
      private $subPositie = string;
      private $location = true;   
      
      function getContent()
      {
          return $this->content;
      }
      
      function setContent($tpl)
      {
           $this->content =  core::$tpl->fetch($tpl);
      }
      
      function setText($text)
      {
          $this->content = $text;
      }
      
      function setSub($positie)
      {
          $this->subActief = true;
          $this->subPositie = $positie;
      }
      
      function stripSub()
      {
          $this->subActief = false;
      }
      
      function getSub()
      {
          return $this->subActief ? $this->subPositie: $this->subActief;
      }
      
      function getLocation()
      {
          return $this->location;
      }
      
      function setLocation($bool = false)
      {
          $this->location = $bool;
      }
  }
?>
